<!DOCTYPE html>
<html lang="sr">
<head>
	<?=  $this->Html->charset(); ?>
	<title>
		<?=  $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('fonts');
		echo $this->Html->css('admin');
		
		echo $this->Html->script('jquery-1.8.2.min');
		echo $this->Html->script('jquery-ui-1.9.1.custom.min');
		echo $this->Html->script('/ckeditor/ckeditor');
		echo $this->Html->script('/ckfinder/ckfinder');
		echo $this->Html->script('admin');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
<body<? if(!$this->Session->read('Auth.User.id')): ?> class="login"<? endif; ?>>
	<div id="left">
		<p id="logo"><?= $this->Html->link($this->Html->image("eurogel.png"), "/admin", array('escape'=>false)) ?></p>
		<p class="links">
			<?= $this->Html->link("Sajt", '/') ?> |
			<?= $this->Html->link("Izlaz", '/admin/logout') ?>
		</p>
		<?=  $this->element('menu_admin') ?>
	</div>
	<div id="main">
		<?=  $this->Session->flash('flash', array('element'=>'flash')); ?>
		<?=  $this->fetch('content'); ?>
	</div>
</body>
</html>
